#include "OSAL.h"

void OS_Delay(uint32_t Delay)
{
#if RTOS_TYPE
	if(OS_RUNING())
	{
	#if(RTOS_TYPE == ENABLE_AZURERTOS)
		tx_thread_sleep(Delay);
	#elif(RTOS_TYPE == ENABLE_FREERTOS)
	
	#else
		HAL_Delay(Delay);
	#endif	
	}
	else
#endif		
	{
		HAL_Delay(Delay);
	}
}



